Menu

Close
  • Home
  • About
  • Author
Subscribe
Blog Logo Menu

Javascript antipattern

A 1-post collection

Page 1 of 1

Javascript Document.Write

document write is an antipattern, use: function elemTest() { var newDiv = document.createElement("div"); newDiv.innerHTML = "<h1>Hi there!</h1>"; document.body.appendChild(newDiv); }; »

Author image Jason Kulatunga Javascript antipattern 21 Sep 2011
Page 1 of 1
Sparktree © 2024
Proudly published with Jekyll using Jasper